# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=vorbisgain
pkgver=0.37
pkgrel=0
pkgdesc="A utility that computes the ReplayGain values for Ogg Vorbis files"
url="https://sjeng.org/vorbisgain.html"
arch="all"
license="GPL-2.0-only"
makedepends="libvorbis-dev"
subpackages="$pkgname-doc"
source="https://sjeng.org/ftp/vorbis/vorbisgain-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--enable-recursive
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="67181834e1a0d7c6e1ccd984e2d30ebf1dcdff84caa77f75e5e771de8414904810e966a43852b7184e075d2428fd8b431124835efc370ce6504b8b2756746e04  vorbisgain-0.37.tar.gz"
